package com.hegongda.okcmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hegongda.common.utils.PageUtils;
import com.hegongda.okcmall.product.entity.AttrEntity;
import com.hegongda.okcmall.product.vo.AttrRespVo;
import com.hegongda.okcmall.product.vo.AttrVo;

import java.util.Map;

/**
 * 商品属性
 *
 * @author Liuweidong
 * @email Liuweidong@gmail.com
 * @date 2021-01-31 17:57:14
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVo attr);

    PageUtils queryAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrRespVo attr);

    PageUtils queryNOAttrPage(Map<String, Object> params, Long catelogId, int i,Long groupId);

    AttrEntity selectOne(Long attrId);
}

